/**
 * EsxdmAuthGroup 数据接口请求封装类
 */
class EsxdmAuthGroupApi {
    /**
* 接口地址配置
*/
    static UrlCfg = {
        list: '/api/admin/esxdm-auth-group/list',
        read: '/api/admin/esxdm-auth-group/read',
        save: '/api/admin/esxdm-auth-group/save',
        delete: '/api/admin/esxdm-auth-group/delete',
    }
    /**
     * 返回一条数据
     */
    static getData(id) {
        return axios({
            url: EsxdmAuthGroupApi.UrlCfg.read,
            method: 'POST',
            data: { id: id }
        })
    }
    /**
     * 返回列表数据
     */
    static getList(param) {
        return axios({
            url: EsxdmAuthGroupApi.UrlCfg.list,
            method: 'POST',
            data: param
        })
    }
    /**
     * 保存数据
     */
    static saveData(formData) {
        return axios({
            url: EsxdmAuthGroupApi.UrlCfg.save,
            method: 'POST',
            data: formData
        })
    }
    /**
     * 删除数据
     */
    static deleteData(id) {
        return axios({
            url: EsxdmAuthGroupApi.UrlCfg.delete,
            data: { id: id }
        })
    }
}

export default EsxdmAuthGroupApi;